import request from "@/request/request.js";

// 用户登录
export const userLogin = (userData)=> {
    const params = new URLSearchParams()
    params.append('uname',userData.uname)
    params.append('upassword',userData.upassword)
    return request.get('user/admin/login', {params})
}

// 用户注册
export const userRegister = (userData)=> {
    const params = new URLSearchParams()
    params.append('uname',userData.uname)
    params.append('upassword',userData.upassword)
    params.append('usex',userData.usex)
    return request.get('user/admin/register', {params})
}

// 用户退出登录
export const userLogout = ()=> {
    return request.get('goods/goods/quit')
}